package br.com.rcbsystens.promotora.model.entidades.pessoa;

import java.io.Serializable;
import java.util.Calendar;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@PrimaryKeyJoinColumn(name="id")
public class PessoaJuridica extends Pessoa implements Serializable {
	private static final long serialVersionUID = -1015529164497013542L;

	@Column(unique = true, length=19)
	private String cnpj;
	@Column(length=160)
	private String razaoSocial;
	@Temporal(TemporalType.DATE)
	private Calendar fundacao;
	@Column(length=20)
	private String inscricaoEstadual;
	@ElementCollection
	private List<Pessoa> socios;
		
}
